import { NgModule } from '@angular/core'
import { SharedModule } from '@shared'
import { MenuRoutingModule } from './menu-routing.module'
import { MenuListComponent } from './list/list.component'
import { MenuService } from './menu.service'
import { MenuDataService } from './menu-data.service'
import { MenuNewComponent } from './new/new.component'
import { MenuBasicComponent } from './new/basic/basic.component'

const COMPONENTS = [
  MenuListComponent,
  MenuNewComponent,
]
const COMPONENTS_NOROUNT = [
  MenuBasicComponent,
]

@NgModule({
  imports: [
    SharedModule,
    MenuRoutingModule
  ],
  declarations: [
    ...COMPONENTS,
    ...COMPONENTS_NOROUNT
  ],
  entryComponents: COMPONENTS_NOROUNT,
  providers: [
    MenuService,
    MenuDataService,
  ]
})
export class MenuModule { }
